<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .box1 {
            width: 200px;
            height: 100px;
            border: 1px solid black;
            background-color: #007F7F;
            animation: move 5s ease infinite;
        }
        @keyframes move {
            0% {
                -webkit-transform: translate(0);
            }
            25% {
                -webkit-transform: translate(500px);
            }
            50% {
                -webkit-transform: translate(500px,500px);
            }
            75% {
                -webkit-transform: translate(0,500px);
            }
            100% {
                -webkit-transform: translate(0);
            }
        }
    </style>
</head>
<body>
    <!-- 元素先水平向右移动500px，然后向下移动500px，
        然后向左移动500px，最后向上500px回到原位，5S完成动画并一直重复 -->
    <div class="box1"></div>
</body>
</html>